import 'package:lx_widgets_library/extension/enum_ex.dart';

enum ResolutionStatus {
  /// 未评价
  none(0),

  /// 已解决
  resolved(1),

  /// 未解决
  unsolved(-1);

  final int rawValue;
  const ResolutionStatus(this.rawValue);
  // 通过 rawValue 获取枚举类型
  static ResolutionStatus? getTypeByNum(int rawValue) => ResolutionStatus.values
      .firstWhereOrNull((activity) => activity.rawValue == rawValue);
}
